home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
NASA Climatology Interdisciplinary Data Collection
/
NASA Climatology Interdisciplinary Data Collection - Disc 4.iso
/
software
/
grads
/
lib
/
functions
/
curdtgh.gf
< prev
next >
Wrap
Text File
|
1994-02-16
|
334b
|
16 lines
function curdtgh
*
* convert current time to dtg
*
moname='JAN FEB MAR APR MAY JUN JUL AUG SEP OCT NOV DEC'
'q time'
t1=subwrd(result,3)
iyr=substr(t1,11,2)
nmo=substr(t1,6,3)
ida=substr(t1,4,2)
ihr=substr(t1,1,2)
i=1
while (nmo!=subwrd(moname,i));i=i+1;endwhile
imo=i
return (iyr*1000000+imo*10000+ida*100+ihr)